package org.hpin.xyxyFile.service;

import org.hpin.common.core.orm.BaseEntity;
import org.hpin.common.core.orm.BaseService;
import org.hpin.xyxyFile.dao.XyxyFmDao;
import org.hpin.xyxyFile.entity.XyxyFm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service(value = "org.hpin.xyxyFile.service.XyxyFmService")
@Transactional(rollbackFor = Exception.class)
public class XyxyFmService extends BaseService {
	@Autowired()
	private XyxyFmDao xyxyFmDao = null;
	
	public void deleteMSG(String [] ids) {
		for(int i=0;i< ids.length;i++){
			XyxyFm xyxyFm = (XyxyFm) xyxyFmDao.findById(XyxyFm.class,ids[i]);
			xyxyFmDao.delete(xyxyFm);
		}
	}


	@Override
	public BaseEntity findById(String id) {
		return super.findById(id);
	}

	@Override
	public void save(BaseEntity baseEntity) {
		super.save(baseEntity);
	}
}
